package model;

import controller.GameSetUp;


public class Table {
	private static char[][] array;

	public Table(int size) {
		setArray(size);

	}
	
	public static void updateArray(int row, int col, char mark){
		if((row>=0 && row<=GameSetUp.TABLE_SIZE) && (col>=0 && col <=GameSetUp.TABLE_SIZE)){
			Table.array[row][col] = mark;
		}
	}

	public char[][] getArray() {
		return array;
	}

	private void setArray(int size) {
		if (size > 0 && size < 20)
			Table.array = new char[size][size];
	}
}
